import * as types from './action-types'
import { getBodySize } from 'common/js/dom'

const changeBodySize = (size) => ({
  type: types['CHANGE_BODYSIZE'],
  size
})

export const changeUserInfoAction = (data) => ({
  type: types['CHANGE_USERINFO'],
  data
})

export const changeBodySizeAction = () => {
  return (dispatch) => {
    dispatch(changeBodySize(getBodySize()))
  }
}
